<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<block v-for="(item, index) in allList" :key="index">
			<view class="text-area" @click="skip(item.url)">
				<text class="title">{{item.name}}</text>
			</view>
		</block>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				allList: [{
					name: "组件式底部tab导航",
					url: "/pages/base_tab/base_tab",
				}, {
					name: "requset请求-组件里",
					url: "/pages/base_tab/base_tab",
				}, {
					name: "过滤器",
					url: "/pages/filters/filters"
				}, {
					name: "画布",
					url: "/pages/canvas/canvas"
				}, {
					name: "微信授权登录",
					url: "/pages/wx_login/wx_login"
				}, {
					name: "tab顶部导航",
					url: "/pages/top_tab/top_tab"
				}, {
					name: "小程序登录之获取用户信息",
					url: "/pages/wx_login/wx-mandate-write"
				}, {
					name: "当前语言",
					url: "/pages/I18/I18"
				}, {
					name: "主题色",
					url: "/pages/theme/theme"
				}, {
					name: "wx小程序camera视频-人脸拍摄",
					url: "/pages/camera-face/camera-face"
				}, ]
			}
		},
		onLoad() {
			//小程序分享 页面单独设置标题
			this.share.title = "页面单独标题"
		},
		methods: {
			skip(res) {
				// uni.navigateTo({
				// 	url: res
				// })
				this.$routr({
					url: res, //路径
					type: 'navigateTo', //跳转方式
					login: false //是否需要登录
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 20rpx;
	}

	.logo {
		height: 150rpx;
		width: 150rpx;
		margin-top: 30rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 20rpx;
	}

	.text-area {
		/* display: flex;
		justify-content: center; */
		line-height: 50rpx;
		text-align: center;
		margin-top: 5rpx;
		border: 1rpx solid #999999;
		margin: 20rpx;
		width: 100%;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>